package com.android.client.event;


import com.android.client.entity.ConfEntity;
import com.android.client.handler.ConfEditorStateSwitchHanlder;

public class ConfEditorStateSwitchEvent extends AbstractEvent<ConfEditorStateSwitchHanlder> {
	public static Type<ConfEditorStateSwitchHanlder> TYPE = new Type<ConfEditorStateSwitchHanlder>();
	public static final int EDITOR = 0;
	public static final int SUBMIT = 1;
	public static final int LOAD_CONF = 0;
	public static final int SAVE_CONF = 1;
	
	private int state;
	private ConfEntity confJdo;
	private int type; 
	
	
	protected void dispatch(ConfEditorStateSwitchHanlder handler) {
		handler.ConfEditorStateSwitch(this);
		handler.confTextLoad(this);
	}

	@Override
	public Type<ConfEditorStateSwitchHanlder> getAssociatedType() {
		return TYPE;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public ConfEntity getConfJdo() {
		return confJdo;
	}

	public void setConfJdo(ConfEntity confJdo) {
		this.confJdo = confJdo;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
}
